package cn.tude.zjl;

public class ObjectDemo1 {
	String name;
	int age;
	double salaly;
	@Override
	public String toString() {
		return "ObjectDemo1 [name=" + name + ", age=" + age + ", salaly=" + salaly + ", getClass()=" + getClass()
				+ ", hashCode()=" + hashCode() + ", toString()=" + super.toString() + "]";
	}
public static void main(String[] args){
	ObjectDemo1 o = new ObjectDemo1();
	System.out.println(o.toString());
	String s1 = "abc";
	String s2 = new String("abc");
	System.out.println(s1==s2);
	System.out.println(s2.equals(s2));
	
}

}
